package com.joolun.cloud.mall.common.feign;

import com.joolun.cloud.common.core.constant.SecurityConstants;
import com.joolun.cloud.common.core.constant.ServiceNameConstants;
import com.joolun.cloud.common.core.util.R;
import com.joolun.cloud.weixin.common.dto.MaQrCodeDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author
 */
@FeignClient(contextId = "feignWxQrCodeService", value = ServiceNameConstants.WX_ADMIN_SERVICE)
public interface FeignWxQrCodeService {

	/**
	 * 生成小程序码
	 * @param maQrCodeDTO
	 * @return
	 */
	@PostMapping("/wxqrcode/inside/unlimited")
	R getUnlimited(@RequestBody MaQrCodeDTO maQrCodeDTO, @RequestHeader(SecurityConstants.FROM) String from);

}
